<?php

namespace catchAdmin\phone\request\wechatUserBalance;

use catcher\base\CatchRequest;

class rechargeBalanceRequest extends CatchRequest
{
    protected $needCreatorId = false;


    protected function rules(): array
    {
        return [
            'total_fee|充值金额'  => 'require|regex: /^\d+(\.\d{1,2})?$/',
            'trade_type|充值类型' => 'require|integer|between:1,2',
        ];
    }


    protected function message(): array
    {
        // TODO: Implement message() method.
        return [
            'total_fee.require' => '请输入充值金额',
            'total_fee.regex'   => '金额必须是数字且最多保留两位小数',
        ];
    }

}
